Any marriage contracted in contravention of the provisions contained in articles 144, 146, 146-1, 147, 161, 162 and 163 may be challenged, within thirty years of its celebration, either by the spouses themselves, or by all those who have an interest in it, or by the public prosecutor.