Shape and clustering effects on the optical properties of amorphous carbon