SAR Focusing In Non-standard Geometries: A Generalized Approach