National Portrait Gallery to close for almost three years during £35.5m redevelopment