White House science adviser resigns