Using P-Splines to Estimate Nonlinear Covariate Effects in Latent Factor Models.