A calibration model for gas sensor array in varying environmental conditions