Theory of the magnetronic laser