Second-order perturbations of the Friedmann world model