Alcoa reports loss as it shutters capacity