Automated angular and translational tomographic alignment and application to phase-contrast imaging