Implicit-explicit general linear methods for ordinary differential equations