PUTNAM MUNICIPAL OPPORTUNITIES TRUST SECOND AMENDED AND RESTATED AGREEMENT AND DECLARATION OF TRUST