Radio emission from solar and stellar coronae