A MEMS capacitive test structure for in-line automatic planar stress characterization