Self-consistent solution of the second-order Dyson equation for single-particle propagators, with application to the spectral functions of 48Ca