A nonmonotone semismooth inexact Newton method