Numerical study of graded bandgap solar cells