Spanish bishop who resigned from office will attempt marriage