The victim's wife and her former lover have been detained after human remains were found in a Spanish cemetery.