EMC reports record second-quarter revenue and profit