The effect of stretching or buckling behavior on the charge distribution of C, Si, P and S single atom chains