Deciphering the role of lipids on the function of membrane proteins