A relativistic approach to gravitational instability in the expanding Universe: second-order Lagrangian solutions