why was the declaration of independence written