The residual market factor, the APT, and mean-variance efficiency