Real-space grid implementation of the projector augmented wave method