Optimization of ion acceleration in the interaction of intense femtosecond laser pulses with ultrathin foils.