Volatility transformation in a multi-curve setting applied to caps and swaptions