Health ministry to buy 500 ambulances