Using waveforms to optimize inspiratory rise time during pressure support ventilation