Effect of technology scaling on program and read window in phase change memories