Minimizing absolute and squared deviations of completion times with different earliness and tardiness penalties and a common due date