Ergodicity breaking in strong and network-forming glassy systems