The effects of gravitational waves on a hydrogen atom