Piezoelectric effect and diode effect in anapole and monopole superconductors