Wronskian formulation of the spectrum of curvature perturbations