How can the Church declare a marriage invalid, when it lasted many years and produced children?