India court allows survey of centuries-old mosque to look for Hindu relics