The Josephson junction as a frequency analyser and mixer of submillimetre radiation sources