Measurement of the 27Al+ and 87Sr absolute optical frequencies