The present invention relates to compounds of Formula I: or a pharmaceutically acceptable salt thereof, wherein the R1, Z, Y, RA, and W groups of formula I are as defined herein. The invention also provides pharmaceutically acceptable compositions and methods of using the compositions in the treatment of various disorders.