President Trump formally accepts Republican nomination for second term