Random Telegraph Noise in Resistive Random Access Memories: Compact Modeling and Advanced Circuit Design