Efficient photo-dissociation of CH4 and H2CO molecules with optimized ultra-short laser pulses