Predicting thermoelectric performance of eco-friendly intermetallic compound p-type CaMgSi from first-principles investigation