Zaslat záznam emailem: Physics-based method to validate and repair flaws in protein structures