Berkshire takes big writedown for Precision Castparts, operating profit falls