General two-dimensional stressed state of thin piezoelectric slabs