Pope 'shares pain' of Nice attack victims, families