Solar and lunar ionospheric electrodynamic effects during stratospheric sudden warmings