Homological dimensions with respect to a semidualizing module and tensor products of algebras