Excitons in confined geometries: Size scaling of nonlinear susceptibilities