Maximal qubit violation of n-locality inequalities in a star-shaped quantum network