Hardy spaces associated with different homogeneities and boundedness of composition operators