Insights into the molecular basis of inactivating mutations of BRAF