square wave characteristics