what date did portugal gain its independence