Refractive index profiles based on the hypergeometric equation and the confluent hypergeometric equation