The complicated legacy of modern Japan as it celebrates its 150th birthday