A comparative study of the dendritic avalanche in MgB2 thin films synthesized by pulsed laser deposition and hybrid physical chemical vapor deposition methods