Generation of intense ultrashort midinfrared pulses by laser-plasma interaction in the bubble regime