Micron beats second quarter revenue expectations