Learning Principal Component Analysis by Using Data from Air Quality Networks