A Ritz approach for the static analysis of planar pantographic structures modeled with nonlinear Euler–Bernoulli beams