Japanese electronics maker Sharp reports its first annual profit in three years following a huge restructuring.