Generalized Reflected BSDE and an Obstacle Problem for PDEs with a Nonlinear Neumann Boundary Condition