Synchronization and detection for two-dimensional magnetic recording