A model for pulsed laser melting of graphite