Effect of grain size on the domain structures and electromechanical responses of ferroelectric polycrystal