Probabilistic Geometric Principal Component Analysis with application to neural data