A microscopically motivated constitutive model for piezoceramics under general electromechanical loading