Energy-resolved positron annihilation for molecules