Spin dynamics under magic angle spinning by Floquet formalism