Neural networks in computational mechanics