A computational and geometric approach to phase resetting curves and surfaces