Matlab library for nanophotonic inverse design