National Portrait Gallery to close for six months in 2019 for building repairs