Linear and nonlinear optical properties of nucleic acid bases