Randomized block proximal gradient methods for a class of structured nonlinear programming