D-Dbar mixing and new physics: General considerations and constraints on the MSSM