Add analogReadResolution and update analogRead

The function analogReadResolution() is able to change the resolution
of the ADCs. The default resolution is 10 bits. Anything greater than
12 bits will be appended by zeros.