A locally based construction of analysis-suitable G1 multi-patch spline surfaces