Measurement and instrumentation : theory and application