MOJAVE - XIV. Shapes and opening angles of AGN jets