Simultaneous preparation and densification of lead magnesium niobate-based ferroelectrics