SP, SBSP form alliance ahead of UP assembly elections