From Earth to exoplanets: Quantifying atmospheric biosignatures and biogeochemical controls on habitability