Structure-based insights into evolution of rhodopsins