Microcanonical simulation of first-order phase transitions in finite volumes