Effect of variable heat capacities on performance of an irreversible Miller heat engine