Pak, China sign loan agreement for $300 million