Understanding conformational transitions in RAS proteins using all-atom and coarse-grained molecular dynamics