Evidence for Magnetar Formation in Broad-lined Type Ic Supernovae1998bw and 2002ap