A generalized Townsend's theory for Paschen curves in planar, cylindrical, and spherical geometries in planetary atmospheres