Electronic states and optical transitions in a graphene quantum dot in a normal magnetic field