Ab initio study of the ground and first excited singlet states of aniline