Clean Energy tightens second-quarter loss, bumps revenue