First principles design of divacancy defected graphene nanoribbon based rectifying and negative differential resistance device