Photonic generation of phase-coded microwave signals based on optical pulse shaping and time delay