Influence of geometrically dependent demagnetization effects on the superconducting properties of type I and type II mesoscopic superconductors | Synapse