Geometry-dependent scattering through Ballistic microstructures: Semiclassical theory beyond the stationary-phase approximation