Optomechanical entanglement between a movable mirror and a cavity field