Energy and Emissions Conscious Optimal Following for Automated Vehicles with Diesel Powertrains