Millimeter-wave orotron oscillation - Part I: Theory