A regularisation scheme for electromagnetic inverse problems: Application to crack detection in civil structures