Production of print heads with piezoelectric elements