Homological dimensions of complexes of modules