A Floquet formalism for the interaction of magnetically trapped atoms with rf fields