Learning-Based Pose Estimation of Non-Cooperative Spacecrafts with Uncertainty Prediction