A pseudo-fermion method for the exact description of fermionic environments: from single-molecule electronics to Kondo resonance