First Passage Times for Processes Governed by Master Equations