Molecular evolution of retinal and nonretinal opsins