Ultrasonic inspection and analysis techniques in green and dried lumber