Role of Dipolar Interactions on the Thermal Stability of High-Density Bit-Patterned Media