Parametric Amplification in Spatially Extended Media and Application to the Design of Tuneable Oscillators at Optical Frequencies