Inelastic cotunneling with energy-dependent contact transmission