Active dendritic integration as a mechanism for robust and precise grid cell firing