Edgeworth approximations for spiked PCA models and applications